package com.zcy.basic.config;

import com.zcy.auth.intercepertor.AuthInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <p>
 *
 * </p>
 *
 * @author lucker
 * @date 2023/12/5 16:13
 */
@Configuration
public class WebConfig  implements WebMvcConfigurer {
    @Autowired
    private AuthInterceptor authInterceptor;

    /*// 注册权限拦截器
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(authInterceptor)
                .addPathPatterns("/**")
                .excludePathPatterns("/login", "/loginOut", "/swagger-ui.html");
    }*/
}
